package com.wowudi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 菜单表
    */
@ApiModel(value="com-wowudi-entity-Menu")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_menu")
public class Menu implements Serializable {
    /**
     * 菜单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="菜单id")
    private Integer id;

    /**
     * 菜单父id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="菜单父id")
    private Integer parentId;

    /**
     * 附加自定义数据id
     */
    @TableField(value = "meta_id")
    @ApiModelProperty(value="附加自定义数据id")
    private Integer metaId;

    /**
     * 菜单路径
     */
    @TableField(value = "path")
    @ApiModelProperty(value="菜单路径")
    private String path;

    /**
     * 菜单名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="菜单名称")
    private String name;

    /**
     * 路由出口
     */
    @TableField(value = "component")
    @ApiModelProperty(value="路由出口")
    private String component;

    /**
     * 菜单重定向路径
     */
    @TableField(value = "redirect")
    @ApiModelProperty(value="菜单重定向路径")
    private String redirect;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    @TableField(value = "update_time")
    @ApiModelProperty(value="")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}